import request from "@/utils/request";
const apiUrlList = {
    addOrUpdateMenu:"/menu/addOrUpdateMenu",
    uploadImg:"/menu/uploadImg",
    userLogin:"/user/Login",
    getMenuList:"/menu/getMenuList",
    getHomeBanner:"/home/getHomeBanner",
    deleteMenu:"/menu/deleteMenu",
    getHomeDemand:"/home/getHomeDemand",
    getHomeChooseUs:"/home/getHomeChooseUs",
    getHomeCustom:"/home/getHomeCustom",
    menuGetModuleContent:"/menu/getModuleContent",
    getNews:"/news/getNews", //获取文章列表
    getNewsContent:"/news/getNewsContent",
    getAboutUsBanner:"/aboutUs/getAboutUsBanner",
    getNewsBanner:"/news/getNewsBanner",
    getContactBanner:"/ContactUs/getContactBanner",
    getContactTab:"/ContactUs/getContactTab",
    getFooter:"/home/getFooter",
    updateSolution:"/menu/updateSolution", //修改产品下的行业
    getTradeStatus:"/menu/getTradeStatus",
    getNavigation:"menu/getNavigation", //获取导航
    getSolutionContent:"product/getSolutionContent", //解决方案前端
    getSolutionCustomer:"product/getSolutionCustomer", //解决方案获取客户信息
    getSolutionBanner:"/product/getSolutionBanner",// 获取banner
    getVideo:"/home/getVideo", //获取视频
}
export function addOrUpdateMenu(data){
    return request({
        url: apiUrlList.addOrUpdateMenu,
        method: 'post',
        data:data
    })
}
export function uploadImg(data){
    return request({
        url: apiUrlList.uploadImg,
        method: 'post',
        data:data
    })
}

// 登录接口
export function userLogin(data){
    return request({
        url: apiUrlList.userLogin,
        method: 'post',
        data:data
    })
}
// 获取菜单接口
export function getMenuList(){
    return request({
        url: apiUrlList.getMenuList,
        method: 'get'
    })
}

// 获取banner 接口
export function getHomeBanner(){
    return request({
        url: apiUrlList.getHomeBanner,
        method: 'get'
    })
}
// 获取全面智能精准
export function getHomeDemand(){
    return request({
        url: apiUrlList.getHomeDemand,
        method: 'get'
    })
}
// 获取为什么选择我们
export function getHomeChooseUs(){
    return request({
        url: apiUrlList.getHomeChooseUs,
        method: 'get'
    })
}
// 获取合作用户
export function getHomeCustom(){
    return request({
        url: apiUrlList.getHomeCustom,
        method: 'get'
    })
}

// 通用删除
export function deleteMenu(data){
    return request({
        url: apiUrlList.deleteMenu,
        method: 'post',
        data:data
    })
}

// 后台获取菜单内容
export function menuGetModuleContent(data){
    return request({
        url: apiUrlList.menuGetModuleContent,
        method: 'post',
        data:data
    })
}

// 获取文章列表
export function getNews(data){
    return request({
        url: apiUrlList.getNews,
        method: 'post',
        data:data
    })
}

// 获取文章内容
export function getNewsContent(data){
    return request({
        url: apiUrlList.getNewsContent,
        method: 'post',
        data:data
    })
}

// 获取关于我们
export function getAboutUsBanner(){
    return request({
        url: apiUrlList.getAboutUsBanner,
        method: 'get'
    })
}

// 获取企业动态banner
export function getNewsBanner(){
    return request({
        url: apiUrlList.getNewsBanner,
        method: 'get'
    })
}

// 获取联系我们
export function getContactBanner(){
    return request({
        url: apiUrlList.getContactBanner,
        method: 'get'
    })
}
// 获取联系我们具体信息
export function getContactTab(data){
    return request({
        url: apiUrlList.getContactTab,
        method: 'post',
        data:data
    })
}
// 获取footer
export function getFooter(){
    return request({
        url: apiUrlList.getFooter,
        method: 'get'
    })
}

// 获取视频
export function getVideo(){
    return request({
        url: apiUrlList.getVideo,
        method: 'get'
    })
}

// 修改产品下的行业
export function updateSolution(data){
    return request({
        url: apiUrlList.updateSolution,
        method: 'post',
        data:data
    })
}
// 获取产品下行业复选框
export function getTradeStatus(data){
    return request({
        url: apiUrlList.getTradeStatus,
        method: 'post',
        data:data
    })
}

// 获取导航内容
export function getNavigation(){
    return request({
        url: apiUrlList.getNavigation,
        method: 'get'
    })
}

// 解决方案前端
export function getSolutionContent(data){
    return request({
        url: apiUrlList.getSolutionContent,
        method: 'post',
        data:data
    })
}
// 解决方案获取客户信息
export function getSolutionCustomer(data){
    return request({
        url: apiUrlList.getSolutionCustomer,
        method: 'post',
        data:data
    })
}

// 获取banner
export function getSolutionBanner(data){
    return request({
        url: apiUrlList.getSolutionBanner,
        method: 'post',
        data:data
    })
}




